<%--
    Document   : register
    Created on : Jun 3, 2014, 3:38:35 AM
    Author     : Yogesh Paisode
--%>

 <!---Working Zone--->
 <script type="text/javascript">
	window.history.forward(1);
	function noBack()
  {
  window.history.forward();
  }
</script>






<jsp:include page="header.jsp"/>

    <li><a href="register.jsp">Sign Up</a></li>

         </ul>
        </nav>


  </div>
 </div>






<div style="position:relative;width: auto;z-index: 10000;">
    <div id="cssmenu" style="background-color: black;">
     <section class="innerpages">
         <div class="grid_12" style="background-image: url('commonfiles/images/satyapal.jpg'); width:100%;">
             <h1>Services</h1>
         </div>
     </section>
</div>
</div>


<div class="block2">
    <div class="re">
    <div class="regs1">

         <div >
            <h1 style="padding: 42px 0 24px; font-size: 28px; line-height: 36px">
                Connect with Vehicalhai.com<br>Fulfill the dream of your car.. </h1>
         </div>
        <div style="width: 500px;">
            <ul class="our_process">
              <li class="img1" type="none">
                <h4>Step1: Planning</h4>
                <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. </p>
              </li>
              <li class="img2" type="none">
                <h4>Step2: Get Quotation</h4>
                <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. </p>
              </li>
              <li class="img3" type="none">
                <h4>Step3:Financer</h4>
                <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. </p>
              </li>
              <li class="img4" type="none">
                <h4>Step4:Get Free EMI</h4>
                <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. </p>
              </li>
            </ul>
    </div>
    </div>
    <div class="registerform">
            <p15>Note: Please make sure your details are correct before submitting form and that all fields are completed!.</p15>




<script language="JavaScript">
 var flag=0;

function checnum(as)
{
	var dd = as.value;

        if(dd.length<=10){

            if(isNaN(dd))
                    {
                            dd = dd.substring(0,(dd.length-1));
                            as.value = dd;
                    }

        }
        else{


             dd = dd.substring(0,(dd.length-1));
                            as.value = dd;
        }

        if(dd.length==10){
            flag=1;
        }

        if(dd.length<10){
            flag=0;
        }


}


 function onlyAlphabets(e, t) {
            try {
                if (window.event) {
                    var charCode = window.event.keyCode;
                }
                else if (e) {
                    var charCode = e.which;
                }
                else { return true; }
                if ((charCode > 64 && charCode < 91) || (charCode > 96 && charCode < 123))
                    return true;
                else
                    return false;
            }
            catch (err) {
                alert(err.Description);
            }
        }



        function mob(){


            if(flag==0){
                 alert("Invalid Mobile Number");

                    emailChk.value="";

                }


        }






        function checkPass()
{
    //Store the password field objects into variables ...
    var pass1 = document.getElementById('pass1');
    var pass2 = document.getElementById('pass2');
    //Store the Confimation Message Object ...
    var message = document.getElementById('confirmMessage');
    //Set the colors we will be using ...
    var goodColor = "#66cc66";
    var badColor = "#ff6666";
    //Compare the values in the password field
    //and the confirmation field
    if(pass1.value == pass2.value){
        //The passwords match.
        //Set the color to the good color and inform
        //the user that they have entered the correct password
        pass2.style.backgroundColor = goodColor;
        message.style.color = goodColor;
        message.innerHTML = "Passwords Match!"
    }else{
        //The passwords do not match.
        //Set the color to the bad color and
        //notify the user.
        pass2.style.backgroundColor = badColor;
        message.style.color = badColor;
        message.innerHTML = "Passwords Do Not Match!"
    }
}















</script>

 <%


                com.register.Model.Step1_Model step1=(com.register.Model.Step1_Model)request.getAttribute("step1");
                String emailId=step1.getEmailId();
                String password="";

        %>



            <div id="signup">
                           <form action="chk.jsp">
                                <div id="formHead" align="center">

                                    <h1>Already A User<br> Please Login</h1>


                                </div>

                               <p><font color="red"><%

                                        out.print(step1.getFirstName().toUpperCase()+" "+step1.getLastName().toUpperCase()+" ");


                                %>Is's Seem's That You Are Already Member Of VehicleHai.com,<br>Just
                               Login Inorder To Open Your Account</font></p>
                               <input type="text" placeholder="First Name" required="" name="emailId" value="<%

                               out.print(emailId);

        %>" onkeypress="return onlyAlphabets(event,this);">

                                <input type="password" placeholder="Choose your password" required="" name="password" id="pass1" value="<%

                               out.print(password);

        %>"/>
                                 <br><br><br><br>
                            <button type="submit">Click To Login!</button>


                            </form>

                            </div>

           </div>

</div>
</div>







<jsp:include page="footer.jsp"/>
